const upHistory = {
  state: {
    list: [],
    successNum: 0,
    errorNum: 0
  },
  actions: {
  },
  mutations: {
    ADD: (state,item) => {
      state.list.push(item)
      if (item.url === '错误') {
        state.errorNum ++
      } else {
        state.successNum ++
      }
    },
    CLEAR: (state) => {
      state.list = []
      state.successNum = 0
      state.errorNum = 0
    },
  }
}

export default upHistory
